package ahut2020.day12;

import java.util.Arrays;
import java.util.Random;

public class RandDemo {
    static Random r = new Random();

    public static void main(String[] args) {

        int[] a = new int[13];//[2,12]
        for (int i = 0; i < 10000; i++) {
            int x = r.nextInt(6) + 1;//[1,6]
            int y = r.nextInt(6) + 1;
            a[x + y]++;
        }
        System.out.println(Arrays.toString(a));

    }
}
